From f9ea5ece443fa744b409d121c562281cc76b4963 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 May 2003 02:14:49 +0000 Subject: [PATCH] Don't call mkshort twice for ANYNAME. Fix for Rick. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@366 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index f9ef04814..a89bcfe37 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -639,10 +639,7 @@ xcsv_waypt_pr(const waypoint *wpt) anyname = xstrdup(""); if ((anyname) && (global_opts.synthesize_shortnames)) { - char *oldname = anyname; - anyname = mkshort(xcsv_file.mkshort_handle, - wpt->notes ? wpt->notes : wpt->description); - xfree(oldname); + anyname = xstrdup(shortname); } sprintf(buff, fmp->printfc, anyname); -- 2.30.2